/* eslint-disable no-template-curly-in-string */
const flow = {
    id: 'overTime',
    name: '加班流程',
    nodeInfo: [
        {
            id: 'startEventId',
            title: '发起人',
            content: '所有员工',
            type: 'startEvent',
            sourceRef: [],
            targetRef: ['userTask1'],
            desc:
                '发起人：【所有员工】\n 表单字段可编辑：【*请假事由】【附件】',
            condition: '',
            candidateUsers: ''
        },
        {
            id: 'userTask1',
            title: '审批人',
            content: '部门主管',
            type: 'userTask',
            sourceRef: ['startEventId'],
            targetRef: ['exclusiveGateway1', 'exclusiveGateway2'],
            desc:
                '发起人：【所有员工】\n 表单字段可编辑：【*请假事由】【附件】',
            condition: '',
            candidateUsers: '${supervisor}'
        },
        {
            id: 'exclusiveGateway1',
            title: '小于3天',
            content: '请假时长≤24小时',
            type: 'exclusiveGateway',
            sourceRef: ['userTask1'],
            targetRef: ['serviceTask1'],
            desc:
                '发起人：【所有员工】\n 表单字段可编辑：【*请假事由】【附件】',
            condition: '${time<=3}',
            candidateUsers: ''
        },
        {
            id: 'exclusiveGateway2',
            title: '大于3天',
            content: '请假时长＞24小时',
            type: 'exclusiveGateway',
            sourceRef: ['userTask1'],
            targetRef: ['userTask2'],
            desc:
                '发起人：【所有员工】\n 表单字段可编辑：【*请假事由】【附件】',
            condition: '${time>3}',
            candidateUsers: ''
        },
        {
            id: 'userTask2',
            title: '审批人',
            content: ' 上级部门主管',
            type: 'userTask',
            sourceRef: ['exclusiveGateway2'],
            targetRef: ['serviceTask1'],
            desc:
                '发起人：【所有员工】\n 表单字段可编辑：【*请假事由】【附件】',
            condition: '',
            candidateUsers: '${supervisor}'
        },
        {
            id: 'serviceTask1',
            title: '抄送人',
            content: ' 抄送人事专员、人事总监',
            type: 'serviceTask',
            sourceRef: ['exclusiveGateway1', 'userTask2'],
            targetRef: ['endEventId'],
            desc:
                '发起人：【所有员工】\n 表单字段可编辑：【*请假事由】【附件】',
            condition: '',
            candidateUsers: '',
            isBranch: false
        },
        {
            id: 'endEventId',
            title: 'endEventName',
            content: 'endEventName',
            type: 'endEvent',
            sourceRef: ['serviceTask1'],
            targetRef: [],
            desc: '',
            condition: '',
            candidateUsers: ''
        }
    ]
};
export default flow;
